package com.carl.mapper;

import com.carl.pojo.Brand;
import com.carl.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface UserMapper {


    @Select("select * from tb_user where username = #{username};")
    User selectByUsername(String Username);
    
    @Insert("insert into tb_user (username, password, email) values (#{username} , #{password} , #{email});")
    void add(User user);

    @Update("update tb_user set password = #{password} where username = #{username};")
    void update(User user);
}
